package d.max.rwp.action;

import android.app.Activity;
import android.content.Intent;

/**
 * author: Maxim Dybarskiy
 * date:   Sep 3, 2011
 * time:   10:34:21 PM
 */
public class NavigateActivityAction extends Action {

    Activity activity;
    Intent intent;

    public NavigateActivityAction(Activity activity, Intent intent) {
        this.activity = activity;
        this.intent = intent;
    }

    @Override
    public void perform() {
        activity.startActivity(intent);
    }
}
